<div class="zs-body" data-ng-init="formInit('vkqtj', {
	        keyField:'userid',
	        randomFields:['userid'],
	        orderObject:{userid:0}
	    })">
	
    <div class="zs-map-tool">
        <div class="location">
            <a href="javascript:;">首页</a>
            <i class="right-arr"></i>
            <a href="javascript:;">人事管理</a>
            <i class="right-arr"></i>
            <a href="javascript:;">考勤统计</a>
        </div>
		<div class="option">
			<input type="button" class="zs-btn orange" value="导出" 
		        ng-click="printKQTJ('vkqtj','HtmltoExcel',attendance.datas)"/>
		</div>
    </div>
    <div class="zs-content" style="position:unset">
        <div class="zs-nice-tab idTabs">
			<div class="tool item" style="margin-left:6px;">
            	<span class="search-warpper" style="width: 65px;">开始时间
            	  </span>
            	<span class="search-warpper">
					<ag-Datebox id='kqtj_kssj'
						class="zs-input" style="width:175px;height: 28px"
						ng-model="attendance.kssj" >
					</ag-Datebox>
            	</span>
				<span class="search-warpper" style="width: 65px;">结束时间
				  </span>
            	 <span class="search-warpper">
            	    <ag-Datebox id='kqtj_jssj'
            	    	class="zs-input" style="width:175px;height: 28px"
            	    	ng-model="attendance.jssj" >
            	    </ag-Datebox>
            	 </span>
				 <span class="search-warpper" style="width: 65px;" ng-show="mi.sa || mi.rsgl_kqtj_bmtj">部门
				   </span>
				  <span class="search-warpper" ng-show="mi.sa || mi.rsgl_kqtj_bmtj">
				     <ag-Combobox class="zs-input" style="width:175px;height: 28px" 
				     		fn='dptidEdit'
				     		para="{ uDictionary:true,
				     				dictionary:'p_department',
				     				pidField:'pid',
				     				leafField:'leaf'}"
				     		ng-model="attendance.dptid"
				     		text-Value="attendance.dptName"/>
				  </span>
				 
            </div>
            <div class="operation item" style="margin-top:7px;">
            	<input type="button" class="zs-btn orange" value="查询" 
            		ng-click="getAttendance(attendance)"/>
            </div>
            <div class="switch">
                
            </div>
        </div>
        <div class="date-container">
            <div id="zpgwd">
                <div class="zs-data-table">
                    <div class="container" style="height:480px;overflow-y: scroll;">
                        <table>
                            <thead>
                                <tr>
									<th>姓名</th>
									<!-- <th>部门</th> -->
									<th>工作天数</th>
									<th>出勤天数</th>
									<th>出差天数</th>
									<!-- <th>详情</th> -->
									<th>请假天数</th>
									<th>旷工天数</th>
									<th>迟到次数</th>
									<th>迟到时长(分钟)</th>
									<th>早退次数</th>
									<th>早退时长(分钟)</th>
									<th>上班缺卡次数</th>
									<th>下班缺卡次数</th>
                                </tr>
                            </thead>
                            <tbody>
                                <tr ng-repeat="r in attendance.datas">
									<!--  姓名 -->
            						<td>
                                        <a>
                                            <label ng-bind="r.username"></label>
                                        </a>
                                   </td>
								   <!--  部门 -->
								    <!-- <td>
								        <a>
								            <label ng-bind="r.dptname"></label>
								        </a>
								   </td> -->
								   <!--  工作天数 -->
								    <td>
								        <a>
								            <label ng-bind="r.gzts"></label>
								        </a>
								   </td>
								   <!--  出勤天数 -->
								    <td>
								        <a>
								            <label ng-bind="r.cqts"></label>
								        </a>
								   </td>
								   <!--  出差天数 -->
								    <td>
								        <a>
								            <label ng-bind="r.ccts"></label>
								        </a>
								   </td>
								   <!--  请假天数 -->
								    <td>
								        <a>
								            <label ng-bind="r.qjts"></label>
								        </a>
								   </td>
								   <!--  旷工天数 -->
								    <td>
								        <a>
								            <label ng-bind="r.kgts"></label>
								        </a>
								   </td>
								   <!--  迟到次数 -->
								    <td>
								        <a>
								            <label ng-bind="r.cdcs"></label>
								        </a>
								   </td>
								   <!--  迟到时长(分钟) -->
								    <td>
								        <a>
								            <label ng-bind="r.cdsc"></label>
								        </a>
								   </td>
								   <!--  早退次数 -->
								    <td>
								        <a>
								            <label ng-bind="r.ztcs"></label>
								        </a>
								   </td>
								   <!--  早退时长(分钟) -->
								    <td>
								        <a>
								            <label ng-bind="r.ztsc"></label>
								        </a>
								   </td>
								   <!--  上班缺卡次数 -->
								    <td>
								        <a>
								            <label ng-bind="r.sbqkcs"></label>
								        </a>
								   </td>
								   <!--  下班缺卡次数 -->
								    <td>
								        <a>
								            <label ng-bind="r.xbqkcs"></label>
								        </a>
								   </td>
                                </tr>
                            </tbody>
                        </table>
                    </div>
                </div>
                <div class="zs-pagination-box">
                    <ag-Page fn='attendance'></ag-Page>
                </div>
            </div>
        </div>
    </div>
</div>